package cn.sy.dto;

import lombok.Data;

@Data
public class ResponseDto {
    String code;
    String message;

    public ResponseDto(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public static ResponseDto ok() {
        return new ResponseDto("0", "success");
    }

    public static ResponseDto instance(String code, String message) {
        return new ResponseDto(code, message);
    }
}
